import { service } from '../utils/request';

//保存定位和年级
export function savePosGra(data) {
    return service({
        url: `/all/localAndGrade/${data.grade}/${data.local}`,
        method: 'POST',
        data
    });
}
//发送弹幕
export function sendBar(data) {
    return service({
        url: '/all/sendBarrage',
        method: 'POST',
        data,
    })
}
//随机获取经纬度
export function getLocate() {
    return service({
        url: '/all/getLocate',
        method: 'POST',
    })
}
//随机获取弹幕
export function getBarrage() {
    return service({
        url: '/all/getBarrage',
        method: 'POST',
    })
}
//随机获取用户数量
export function getUserCount() {
    return service({
        url: '/all/getCount',
        method: 'POST',
    })
}